package com.tom.demo.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.tom.demo.common.entity.SysPost;
import com.tom.demo.vo.SysPostVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Admin
* @description 针对表【sys_post】的数据库操作Mapper
* @createDate 2025-03-29 17:04:51
* @Entity generator.domain.SysPost
*/
@Mapper
@DS("master")
public interface SysPostMapper {

    int deleteByPrimaryKey(@Param("postId") String postId);

    int insert(SysPost record);

    SysPost selectByPrimaryKey(@Param("postId")String postId);

    int updateByPrimaryKey(SysPost record);

    List<SysPostVo> pageList(SysPost sysPost);

    int oneCount(@Param("postId")String postId,
             @Param("postName")String postName,
             @Param("postCode")String postCode);
}
